#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    QPushButton* button=new QPushButton(this);
   Qt::FocusPolicy fou= button->focusPolicy();
    qDebug()<<fou;
  //修改对焦方式
    button->setFocusPolicy(Qt::NoFocus);
    Qt::FocusPolicy fou1= button->focusPolicy();
     qDebug()<<fou1;
}

Widget::~Widget()
{
    delete ui;
}

